package com.guijq.codesegment.tree;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2018/8/13/013
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EquipmentITreeNode2Vo implements ITreeNode {

    private Integer equipmentId;
    private String equipmentName;
    private String equipmentCode;
    private Integer equipmentModelId;
    private int level;

    @Override
    public Integer getNodeId() {
        return this.equipmentId;
    }

    @Override
    public String getNodeName() {
        return this.equipmentName;
    }

    @Override
    public Integer getNodeParentId() {
        return null;
    }

    @Override
    public Integer getNodeParentLevelId() {
        return equipmentModelId;
    }
}
